package com.zzl.study.demo.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 当前天气
 *
 * @author: zhangzl
 * @date: 2025/10/9 14:13
 * @version: 1.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public record CurrentWeather(@JsonProperty("time") String time,
                             @JsonProperty("temperature_2m") Double temperature,
                             @JsonProperty("apparent_temperature") Double feelsLike,
                             @JsonProperty("relative_humidity_2m") Integer humidity,
                             @JsonProperty("precipitation") Double precipitation,
                             @JsonProperty("weather_code") Integer weatherCode,
                             @JsonProperty("wind_speed_10m") Double windSpeed,
                             @JsonProperty("wind_direction_10m") Integer windDirection) {
}
